package com.weisiqian.study.springcloud.servicefeign.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @ FeignClient（“服务名”）指定调用哪个服务
 */
@FeignClient(value = "server-hi")
public interface ServiceHi {

    @RequestMapping(value = "/hello/sayHi",method = RequestMethod.GET)
    String sayHi(@RequestParam(value = "name")String name);

}
